package main

import (
	"test2017521/car"
	"sync"
	"os/exec"
)

func main() {
	var cars car.CarInf
	var wg sync.WaitGroup
	cars = car.NewCar(100, 200, "123", 2)
	for i := 1; i <= 10; i++ {
		wg.Add(1)
		go func(i int) {
			cars.Run(i)
			cars.Stop()
			wg.Done()
		}(i)
	}
	wg.Wait()
	exec.Cmd{}

}

